package com.sugou.dao.exceptions;

import com.sugou.dao.support.ResultInfo;

public class DaoException extends RuntimeException {
	private static final long serialVersionUID = -7700979266100821120L;
	
	private ResultInfo resInfo;
	
	public DaoException(ResultInfo info) {
		resInfo=info;
	}

	public DaoException(String message,ResultInfo info) {
		super(message);
		this.resInfo=info;
	}

	public DaoException(Throwable cause,ResultInfo info) {
		super(cause);
		this.resInfo=info;
	}

	public DaoException(String message, Throwable cause,ResultInfo info) {
		super(message, cause);
		this.resInfo=info;
	}

	public ResultInfo getResInfo() {
		return resInfo;
	}
}
